<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button>点击我请求xml数据</button>
		<script type="text/javascript">
			var btn = document.querySelector("button");
			btn.onclick = function(){
				let xhr = new XMLHttpRequest();
				xhr.open("GET","./xml.php",true);
				xhr.onload = function(){
					// console.log(xhr.responseXML);
					var res = xhr.responseXML;
					console.log(res.querySelector("vuejs bname").innerHTML)
				}
				xhr.send();
				
			}
			
		</script>
	</body>
</html>
